package com.myqm.controller.weixin;

import java.util.List;

import javax.validation.Valid;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.github.pagehelper.PageInfo;
import com.myqm.dto.ResultResponse;
import com.myqm.pojo.weixin.Internaltrade;
import com.myqm.pojo.weixin.InternalTradetype;
import com.myqm.pojo.weixin.query.QueryCustomer;
import com.myqm.pojo.weixin.query.QueryInternaltradetype;
import com.myqm.service.weixin.InternaltradetypeService;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
@Api(tags = "商品类型查询")
@RestController
@RequestMapping(value="/tradetype")
public class InternaltradetypeController {

	@Autowired
	public InternaltradetypeService internaltradetypeservice;


	@ApiOperation(value = "详细列表查询") 
	@PostMapping(value = "/list")
	public ResultResponse<PageInfo<InternalTradetype>>  list
		(@ApiParam(required=false,value="查询")
		@Valid @RequestBody QueryInternaltradetype param){
	 return new ResultResponse<PageInfo<InternalTradetype>>
			 (internaltradetypeservice.list(param));
	}

}
